package gameManager;

import java.awt.Dimension;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;

/**
 *This class governs the Rectangle Wars' Boss, which
 *has no movement.
 @author Kannan and Stephen
 */
public class EnemyStaticBoss extends NonPlayerCharacter{

    /**
     *The constructor for the boss, managing its interaction with other
     *objects as well as its position in the window.
     *@param startPosition the starting place of the Boss
     *@param startDirection The boss actually has no direction/speed
     *so this is not used.
     */
    public EnemyStaticBoss (Point startPosition, int startDirection) {
        super(startPosition, startDirection);
        setSpeed(0);
        setObjectImage("EnemyStaticBossRect.jpg");
        setDimension(new Dimension(getObjectImage().getWidth(null), getObjectImage().getHeight(null)));
        setNameOfInteractable("EnemyStaticBoss");
        addCollisionObject("PlayerAmmo");
        addCollisionObject("PlayerRect");
        this.setHealthValue(3);
    }

 
    @Override
    public boolean isDying () {
        return getHealthValue()<=0;
    }

    @Override
    public void destroy () {
    }


    @Override
    public void collisionHandler (Interactable collisionCharacter) {
        if (collisionCharacter.getNameOfInteractable() == "PlayerAmmo") {
            changeHealthValue(-1);
        }
            
    }

}
